package jse.test20160506Abstract;

import org.junit.Test;

public class TestAbstract {
	
	@Test
	public  void test() {
		
		Circle circle = new Circle(5);
		System.out.println("名称"+circle.getName()+"\t");
		System.out.println("面积"+circle.getArea()+"\n");
		Rectangle rectangle = new Rectangle(4, 5);
		System.out.println("名称"+rectangle.getName()+"\t");
		System.out.println("面积"+rectangle.getArea()+"\n");
	}
}
